function e(e) {
    var n = t.enc.Utf8.parse("Wm3WZYTPz0wzccnW");
    return t.AES.decrypt(e, n, {
        mode: t.mode.ECB,
        padding: t.pad.Pkcs7
    }).toString(t.enc.Utf8);
}

var t = require("04492143C63E4BDF622F494414C97135.js"), n = {
    "content-type": "application/x-www-form-urlencoded; charset=UTF-8"
};

module.exports = {
    get: function(t, n) {
        var r = wx.getStorageSync("channel");
        void 0 === r && (r = "");
        var a = {
            version: "1.5.0",
            source: 2,
            channel: r
        };
        return a = JSON.stringify(a), new Promise(function(r, o) {
            wx.request({
                url: t,
                method: "get",
                header: {
                    "content-type": "application/x-www-form-urlencoded; charset=UTF-8",
                    FACEHEADER: a
                },
                data: n,
                success: function(t) {
                    200 == t.statusCode ? r(JSON.parse(e(t.data))) : o(t);
                },
                fail: function(e) {
                    o(e);
                }
            });
        });
    },
    post: function(t, n) {
        var r = wx.getStorageSync("channel");
        void 0 === r && (r = "");
        var a = {
            version: "1.5.0",
            source: 2,
            channel: r
        };
        return a = JSON.stringify(a), new Promise(function(r, o) {
            wx.request({
                url: t,
                header: {
                    FACEHEADER: a
                },
                data: n,
                method: "post",
                success: function(t) {
                    200 == t.statusCode ? r(JSON.parse(e(t.data))) : o(t);
                },
                fail: function() {
                    o(res);
                }
            });
        });
    },
    header: n
};